home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / communic / pcmail / main / comm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  2.0 KB  |  78 lines

  1. /*++
  2. /* NAME
  3. /*      comm 5
  4. /* SUMMARY
  5. /*      cico systems parameters
  6. /* PROJECT
  7. /*      pc-mail
  8. /* PACKAGE
  9. /*      cico
  10. /* SYNOPSIS
  11. /*      #include "params.h"
  12. /*      #include "comm.h"
  13. /* DESCRIPTION
  14. /* .nf
  15.  
  16.  /* roles and other behavioural codes */
  17.  
  18. #define MASTER    1            /* who sends files */
  19. #define SLAVE    2            /* who receives files */
  20. #define DONE    3            /* no more files */
  21.  
  22. #define YES    'Y'
  23. #define NO    'N'
  24.  
  25.  /* communications parameters (see params.h) */
  26.  
  27. #define COMM_LINE    (comm[P_PORT].strval)
  28. #define COMM_RATE    (comm[P_BAUD].strval)
  29. #define DIAL_SEQUENCE    (comm[P_DIAL].strval)
  30. #define LOGIN_NAME    (comm[P_LOGIN].strval)
  31. #define DISC_SEQUENCE    (comm[P_DISC].strval)
  32.  
  33.  /* related info */
  34.  
  35. extern int ttfd;            /* comm. port */
  36. extern Info *comm;            /* comm. info */
  37. extern char *password;            /* password */
  38. extern char rmthost[];            /* remote system name */
  39.  
  40.  /* functions that use the above */
  41.  
  42. extern char *rmtname();            /* make remote spool-file name */
  43. extern char *locname();            /* make local spool-file name */
  44.  
  45.  /* protocol function pointers */
  46.  
  47. extern int (*Read) ();            /* protocol read */
  48. extern int (*Write) ();            /* protocol write */
  49. extern int (*Close) ();            /* protocol close */
  50.  
  51.  /* use these at your own risk */
  52.  
  53. #define MSGBUF       4096        /* message buffer size */
  54.  
  55. extern char msgin[MSGBUF];        /* message receive buffer */
  56. extern char msgout[MSGBUF];        /* message send buffer */
  57.  
  58.  /* message i/o functions */
  59.  
  60. extern int isok();            /* do request; get yes or no */
  61. extern char *talk();            /* send message */
  62. extern char *hear();            /* receive message */
  63.  
  64. /* SEE ALSO
  65. /*      comm(3) implementation module
  66. /* AUTHOR(S)
  67. /*      W.Z. Venema
  68. /*      Eindhoven University of Technology
  69. /*      Department of Mathematics and Computer Science
  70. /*      Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  71. /* CREATION DATE
  72. /*      Sun Apr 12 13:52:39 GMT+1:00 1987
  73. /* LAST MODIFICATION
  74. /*    90/01/22 13:01:21
  75. /* VERSION/RELEASE
  76. /*    2.1
  77. /*--*/
  78.